package org.jeecg.modules.workservice.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 服务型工单表
 * @Author: jeecg-boot
 * @Date:   2021-08-25
 * @Version: V1.0
 */
@Data
@TableName("work_service")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="work_service对象", description="服务型工单表")
public class WorkService implements Serializable {
    private static final long serialVersionUID = 1L;

	/**编号;UUID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "编号;UUID")
    private String serviceId;
	/**工单编号，工单表外键*/
	@Excel(name = "工单编号，工单表外键", width = 15)
    @ApiModelProperty(value = "工单编号，工单表外键")
    private String serviceWorkId;
	/**工单内容*/
	@Excel(name = "工单内容", width = 15)
    @ApiModelProperty(value = "工单内容")
    private String serviceContent;
	/**损坏设备*/
	@Excel(name = "损坏设备", width = 15)
    @ApiModelProperty(value = "损坏设备")
    private String serviceEquipment;
	/**是否质保期内，1：是 2，不是，*/
	@Excel(name = "是否质保期内，1：是 2，不是，", width = 15)
    @ApiModelProperty(value = "是否质保期内，1：是 2，不是，")
    @Dict(dicCode = "service_period")
    private Integer servicePeriod;
	/**是否收费，1；不收费   2，收费，*/
	@Excel(name = "是否收费，1；不收费   2，收费，", width = 15)
    @ApiModelProperty(value = "是否收费，1；不收费   2，收费，")
    @Dict(dicCode = "service_charge")
    private Integer serviceCharge;
	/**默认0，人工费*/
	@Excel(name = "人工费", width = 15)
    @ApiModelProperty(value = "人工费")
    private Double serviceArtificial;
	/**默认0，车旅费*/
	@Excel(name = "默认0，车旅费", width = 15)
    @ApiModelProperty(value = "默认0，车旅费")
    private Double serviceBrigade;
	/**默认0，配件费*/
	@Excel(name = "默认0，配件费", width = 15)
    @ApiModelProperty(value = "默认0，配件费")
    private Double serviceParts;
	/**合计*/
	@Excel(name = "合计", width = 15)
    @ApiModelProperty(value = "合计")
    private Double serviceTotal;
	/**故障现象及问题原因*/
	@Excel(name = "故障现象及问题原因", width = 15)
    @ApiModelProperty(value = "故障现象及问题原因")
    private String serviceProblem;
	/**处理办法以及结果*/
	@Excel(name = "处理办法以及结果", width = 15)
    @ApiModelProperty(value = "处理办法以及结果")
    private String serviceWay;
	/**隐患告知和注意事项*/
	@Excel(name = "隐患告知和注意事项", width = 15)
    @ApiModelProperty(value = "隐患告知和注意事项")
    private String serviceHidden;
	/**需要的工具，以字符保存*/
	@Excel(name = "需要的工具，以字符保存", width = 15)
    @ApiModelProperty(value = "需要的工具，以字符保存")
    private String workTool;
	/**是否需要借车：1.需要   2.不需要；*/
	@Excel(name = "是否需要借车：1.需要   2.不需要；", width = 15)
    @ApiModelProperty(value = "是否需要借车：1.需要   2.不需要；")
    @Dict(dicCode = "work_vehicle")
    private Integer workVehicle;
	/**是否工具确认， 1，已确认   2.未确认，*/
	@Excel(name = "是否工具确认， 1，已确认   2.未确认，", width = 15)
    @ApiModelProperty(value = "是否工具确认， 1，已确认   2.未确认，")
    @Dict(dicCode = "work_tool_confirm")
    private Integer workToolConfirm;
	/**是否电话确认，1，已确认，  2未确认，*/
	@Excel(name = "是否电话确认，1，已确认，  2未确认，", width = 15)
    @ApiModelProperty(value = "是否电话确认，1，已确认，  2未确认，")
    @Dict(dicCode = "work_phone_confirm")
    private Integer workPhoneConfirm;
	/**结果附件，图片*/
	@Excel(name = "结果附件，图片", width = 15)
    @ApiModelProperty(value = "结果附件，图片")
    private String serviceWayImg;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
}
